package com.wxzz.elearing.user.entity;

import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wxzz.elearning.common.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since 2021-03-11
 */
@Data
@ApiModel(value = "AdminPermission对象", description = "")
public class AdminPermission extends BaseEntity {

    @ApiModelProperty(value = "权限名")
    private String permissionName;

    @ApiModelProperty(value = "父级id 顶级为0")
    private Long pid;

    @ApiModelProperty(value = "权限标识")
    private String perms;

    @ApiModelProperty(value = "0-总后台权限 1-企业后台权限 2-平台讲师权限 3-企业讲师权限 4-企业试讲讲师权限")
    private Integer permissionType;

    @ApiModelProperty(value = "前端路由")
    private String path;

    @ApiModelProperty(value = "类型   0：目录   1：菜单   2：按钮")
    private Integer type;

    @ApiModelProperty(value = "排序 越小越前面")
    private Integer sort;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "接口路径")
    private String uri;

    @TableField(exist = false)
    @ApiModelProperty(value = "子集")
    private List<AdminPermission> children;
}
